<script>
    var r = prompt("输入圆的半径：");
    alert("圆的面积是:"+3.14*parseInt(r)*parseInt(r));
</script>